package org.lendoo.web.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 商品和图片的关系
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "RelGoodsImage", description = "商品和图片的关系")
@TableName("rel_goods_image")
public class RelGoodsImage {

    @ApiModelProperty(value = "主键", dataType = "Integer")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商品id", dataType = "Integer")
    @TableField(value = "goods_id")
    private Integer goodsId;

    @ApiModelProperty(value = "图片id", dataType = "Integer")
    @TableField(value = "image_id")
    private Integer imageId;

}
